<div class="aw-container-wrap">
	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="aw-user-setting">
					<div class="tabbable">
						<ul class="nav nav-tabs aw-nav-tabs active">
							<li class="active"><a href="{:U("index/setting/verify")}">申请认证</a></li>
							<li><a href="{:U("index/setting/security")}">安全设置</a></li>
							<li><a href="{:U("index/setting/face")}">头像上传</a></li>
							<li><a href="{:U("index/setting/basing")}">基本资料</a></li>
							
							<h2><i class="icon icon-setting"></i> 用户设置</h2>
						</ul>
					</div>
					
					<div class="tab-content clearfix">
<div class="aw-mod">
	<div class="mod-body">
		<div class="aw-mod">
			<div class="mod-head">
				<h3>申请认证</h3>
			</div>
			<form id="verify_form" method="post" action="{:U('index/setting/verify')}" enctype="multipart/form-data" class="form-horizontal">
				<div class="mod-body">
					        <div class="form-group">
						    <label class="col-lg-2 control-label">当前状态:</label>

						    <?php if($res){?>
						    <div class="col-lg-10">您已认证</div>
						    </div>

						    <div class="form-group">
							<label class="col-lg-2 control-label">认证类型:</label>
							<?php if($res['type']=="personal"){?>
								<div class="col-lg-10">个人认证</div>
							<?php }elseif($res['type']=="enterprise"){?>
								<div class="col-lg-10">企业认证</div>
							<?php }?>
							</div>

							<div class="form-group">
								<label class="col-lg-2 control-label verify-name"><span>真实姓名</span>:</label>
								<div class="col-lg-4">
							    	<?php echo $res['truename']?>
								</div>
							</div>

							<div class="form-group">
								<label class="col-lg-2 control-label verify-code">
									<span>身份证号码</span>:</label>
								<div class="col-lg-4">
								    <?php echo $res['idcard']?>
								</div>
							</div>

							<div class="form-group">
								<label class="col-lg-2 control-label">联系方式:</label>
								<div class="col-lg-8">
								    <?php echo $res['phone']?>
								</div>
							</div>

							<div class="form-group">
								<label class="col-lg-2 control-label">认证说明:</label>
								<div class="col-lg-8">
								    <?php echo $res['instruction']?>
								</div>
							</div> 

							<div class="form-group" id="upload-attach">
								<label class="col-lg-2 control-label">附件:</label>
								<div class="col-lg-8">
									<img alt="图片" src="<?php echo '__ROOT__/'.$res['verify_file']?>">	
								</div>
							</div> 





							</div>
						<?php  } else{?>
							<div class="col-lg-10">未认证</div>
							<div class="form-group">
						<label class="col-lg-2 control-label">认证类型:</label>
						<div class="col-lg-10">
						    <input name="type" class="apply-type" value="personal" id="type_personal" checked="checked" type="radio"> 个人认证 &nbsp;
						    <input name="type" class="apply-type" value="enterprise" id="type_enterprise" type="radio"> 机构认证						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-2 control-label verify-name"><span>真实姓名</span>:</label>
						<div class="col-lg-4">
						    <input class="form-control" name="name" type="text">
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-lg-2 control-label verify-code">
							<span>身份证号码</span>:</label>
						<div class="col-lg-4">
						    <input class="form-control" name="id_code" type="text">
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-lg-2 control-label">联系方式:</label>
						<div class="col-lg-8">
						    <input class="form-control" name="contact" type="text">
						</div>
					</div>   
					<div class="form-group">
						<label class="col-lg-2 control-label">认证说明:</label>
						<div class="col-lg-8">
						    <input class="form-control" name="reason" type="text">
						</div>
					</div> 
					<div class="form-group" id="upload-attach">
						<label class="col-lg-2 control-label">附件:</label>
						<div class="col-lg-8">
							<a class="btn btn-mini btn-default">上传附件</a>
							<span class="text-color-999 upload-url"></span>
							<p class="text-color-999">请提交对应的身份证或者组织机构代码证件扫描</p>
							<input name="attach" class="upload-attach form-control hide" onchange="$('.upload-url').html($(this).val());" type="file">
						</div>
					</div>  
				</div>
				<input name="submit" class="btn btn-large btn-success pull-right"  type="submit" value="提交">
					   <?php }?>	
					</div>
					
			</form>
			<!-- <div class="mod-footer clearfix">
				<a href="javascript:;" id="submit-form" class="btn btn-large btn-success pull-right" onclick="AWS.ajax_post($('#verify_form'))">提交</a>
			</div> -->
		</div>
	</div>
</div>



<script type="text/javascript">
	$(function()
	{
		$('#type_personal').click(function()
		{
			$('.verify-name span').html(_t('真实姓名'));
			$('.verify-code span').html(_t('身份证号码'));
		});
		
		$('#type_enterprise').click(function()
		{
			$('.verify-name span').html(_t('企业名称'));
			$('.verify-code span').html(_t('组织机构代码'));
		});
		
		$('input.apply-type:checked').click();
		
			});
</script>

					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</body></html>